home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 …SCII & the Runetime Code / ADC Developer CD (1992-07) (''Butch ASCII And The Runtime Code'')_iso / Dev.CD 199207.iso / Development Platforms / Apple II / DTS Apple II Sample Code / IR 2.0 / Source Code / Interfaces / IR.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-25  |  2.4 KB  |  102 lines  |  [TEXT/MPS ]

  1. /*******************************************************************************
  2. *
  3. * IR.h -- C interface file for IR v2.0
  4. *
  5. * by Matt Deatherage
  6. *
  7. * Copyright 1991-1992, Apple Computer, Inc.  All rights reserved.
  8. *
  9. * Release history:
  10. *
  11. * 2.0f1            Matt Deatherage        2/24/92
  12. *
  13. * First release.
  14. *
  15. * 2.0            Matt Deatherage        2/25/92
  16. * Changed relative numbers to be absolute.
  17. *
  18. *******************************************************************************/
  19.  
  20. #ifndef __TYPES__
  21. #include <TYPES.h>
  22. #endif
  23.  
  24. #ifndef __GSOS__
  25. #include <GSOS.h>
  26. #endif
  27.  
  28. #ifndef __IR__
  29. #define __IR__
  30.  
  31. #define NAME_OF_IR "\pApple~IR~"
  32.  
  33. #define irRequestBase 0xC300
  34.  
  35. #define askIRStartUp         0xC300 /* don't call this */
  36. #define askIRAreYouThere     0xC301
  37. #define askIRToInstall         0xC302
  38. #define askIRGetPrefs         0xC303
  39. #define askIRSetPrefs         0xC304
  40. #define askIRDoPrefs         0xC305
  41.  
  42. #define /* Error codes */
  43.  
  44. #define irErrorMask 0xFF00
  45. #define irErrorBase 0xC300
  46.  
  47. #define irDuplicateExists     0xC301
  48. #define irDuplicateWontDie     0xC302
  49. #define irNoFinder             0xC303
  50. #define irGSOSNotAvail         0xC304
  51. #define irNotIRFile         0xC305
  52. #define irBusy                 0xC306
  53. #define irCantPrint         0xC307
  54.  
  55. #define /* flag bits */
  56.  
  57. #define irDefaultPrefs         0
  58. #define irSpecialPrefs         0x0001
  59. #define irDoDiskPrefs         0x0001
  60. #define irNoDuplicates         0x0002
  61. #define irKillDuplicates     0x0004
  62. #define irDontOpenNDAs         0x0008
  63. #define irKillFinderExts     0x0010
  64. #define irCopyExistNDAs     0x0020
  65. #define irWaitOpenFailed     0x0040
  66. #define irIgnoreProblems     0x0080
  67.  
  68. typedef struct IRStartUpRecord {
  69.     int userID;
  70. } IRStartUpRecord, *IRStartUpRecordPtr, **IRStartUpRecordHndl;
  71.  
  72.  
  73. typedef struct IRInputRecord {
  74.     int recvCount;
  75.     int userID;
  76. } IRInputRecord, *IRInputRecordPtr, **IRInputRecordHndl;
  77.             
  78. typedef struct askInstallInputRecord {
  79.     int flags;
  80.     GSString255Ptr pathname;
  81.     int filetype;
  82.     longint auxtype;
  83. } askInstallInputRecord, *askInstallInputRecordPtr, **askInstallInputRecordHndl;
  84.  
  85. typedef struct askInstallOutputRecord {
  86.     int recvCount;
  87.     int irError;
  88.     int userID;
  89. } askInstallOutputRecord, *askInstallOutputRecordPtr, **askInstallOutputRecordHndl;
  90.  
  91. typedef struct askGetPrefsOutputRecord {
  92.     int recvCount;
  93.     int irError;
  94.     int preferences;
  95. } askGetPrefsOutputRecord, *askGetPrefsOutputRecordPtr, **askGetPrefsOutputRecordHndl;
  96.  
  97. typedef struct askSetPrefsOutputRecord {
  98.     int recvCount;
  99.     int irError;
  100. } askSetPrefsOutputRecord, *askSetPrefsOutputRecordPtr, **askSetPrefsOutputRecordHndl;
  101.                                               
  102.